package people;

public class Teacher extends Person {
    public final String lesson;

    public Teacher(int number, String name, String sex, String lesson) {
        super(number, name, sex);
        this.lesson = lesson;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "number=" + number +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", lesson='" + lesson + '\'' +
                '}';
    }

}